package com.yaoxiaowen.project2.test.test_channel;

import android.view.View;
import android.widget.Button;
import android.widget.TextView;

import com.yaoxiaowen.project2.BuildConfig;
import com.yaoxiaowen.project2.R;
import com.yaoxiaowen.project2.base.BaseActivity;
import com.yaoxiaowen.project2.util.Utils_App;
import com.yaoxiaowen.project2.util.Utils_Screen;

import butterknife.BindView;
import butterknife.OnClick;

public class ChannelMainActivity extends BaseActivity {

    @BindView(R.id.channelBtn1)
    Button channelBtn1;
    @BindView(R.id.channelBtn2)
    Button channelBtn2;
    @BindView(R.id.channelBtn3)
    Button channelBtn3;
    @BindView(R.id.channelBtn4)
    Button channelBtn4;
    @BindView(R.id.channelBtn5)
    Button channelBtn5;
    @BindView(R.id.channelTv1)
    TextView channelTv1;
    @BindView(R.id.channelTv2)
    TextView channelTv2;
    @BindView(R.id.channelTv3)
    TextView channelTv3;
    @BindView(R.id.channelTv4)
    TextView channelTv4;
    @BindView(R.id.channelTv5)
    TextView channelTv5;



  public static final String TAG = "ChannelMainActivity";
  private static final boolean DEBUG = true;
  private static final boolean IS_SHOW = true;

    @Override
    protected int getLayoutId() {
        return R.layout.activity_channel_main;
    }

    @Override
    protected void initData() {

    }

    @Override
    protected void initView() {
        channelBtn1.setText("得到包名");
        channelBtn2.setText("得到  packer market 值");
        channelBtn3.setText("得到 DEBUG_STRING 值");
        channelBtn4.setText("得到 VersionName");
        channelBtn5.setText("getChannelName");
    }

    @Override
    protected void initListener() {

    }

    @OnClick(R.id.channelBtn1)
    public void btn1OnClick(View view){
        channelTv1.setText(Utils_App.getPackageName());
    }

    @OnClick(R.id.channelBtn2)
    public void btn2OnClick(View view){
//        channelTv2.setText("" + Utils_App.getPackerMarket(this));
    }

    @OnClick(R.id.channelBtn3)
    public void btn3OnClick(View view){
        channelTv3.setText("" + BuildConfig.DEBUG_STRING);
    }

    @OnClick(R.id.channelBtn4)
    public void btn4OnClick(View view){
        channelTv4.setText("" + Utils_App.getVersionName());
    }

    @OnClick(R.id.channelBtn5)
    public void btn5OnClick(View view){
        channelTv5.setText("" + Utils_App.getChannelName());
    }
}
